﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;


namespace Model
{

    #region Models

    public class ChangePasswordModel
    {
        [Required]
        [DataType(DataType.Password)]
        [DisplayName("原密码")]
        public string OldPassword { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [DisplayName("新密码")]
        public string NewPassword { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [DisplayName("确认新密码")]
        public string ConfirmPassword { get; set; }
    }

    public class LogOnModel
    {
        [Required]
        [MultiCulturalDisplayName((typeof(Language)), "UserName")]
      //  [DisplayName("用户名")]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.Password)]
       // [DisplayName("密码")]
        [MultiCulturalDisplayName((typeof(Language)), "Password")]
        public string Password { get; set; }

        [Required]
        [DisplayName("验证码")]
        [StringLength(4)]
        public string authcode { get; set; }

        [DisplayName("记住?")]
        public bool RememberMe { get; set; }

        [DisplayName("语言")]
        public string lang { get; set; }
    }

    #endregion

}